package com.howtoplay.Initialization;

import java.lang.reflect.Method;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class InitMethodHandler {

    private Map<String,Method> handlerMap = new ConcurrentHashMap<>();

    public InitMethodHandler(Map<String, Method> handlerMap) {
        this.handlerMap = handlerMap;
    }

    public InitMethodHandler() {

    }

    public void put(String uri,Method m){
        handlerMap.put(uri,m);
    }

    public Method get(String uri){
        return  handlerMap.get(uri);
    }
}
